package cn.singno.springBoot.demo.ch01;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main
{
	@Test
	public void test1() throws Exception
	{
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);

		UseFunctionService useFunctionService = context.getBean(UseFunctionService.class);

		System.out.println(useFunctionService.sayHello("singno"));

		context.close();
	}
}
